import { makeAutoObservable } from 'mobx';
import user from '../../pages/user';
class AppStore {
  city = "北京" 
  isEnable = false
  isLogin = false
  token=""
  userid=""
  constructor(public store: any){
    makeAutoObservable(this)
  }
  changeCity (payload:string) {
    this.city = payload
  }
  changeIsEnable () {
    this.isEnable = !this.isEnable
  }
  changeLogin ({token,userid}:any) {
    this.isLogin = true
    this.token = token
    this.userid =userid
  } 
}

export default AppStore